<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    @yield('title')
    <link href="{{ asset('resources/views/home/css/base.css') }}" rel="stylesheet">
    <link href="{{ asset('resources/views/home/css/index.css') }}" rel="stylesheet">
    <link href="{{ asset('resources/views/home/css/style.css') }}" rel="stylesheet">
    <link href="{{ asset('resources/views/home/css/new.css') }}" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="{{ asset('resources/views/home/js/modernizr.js') }}"></script>
    <![endif]-->
</head>
<body>
<header>
    <div id="logo">
        <a href="{{url('/')}}"></a>
    </div>
    <nav class="topnav" id="topnav">
        @foreach($navs as $v)<a href="{{$v->nav_url}}"><span>{{$v->nav_name}}</span><span class="en">{{$v->nav_alias}}</span></a>@endforeach
    </nav>
    </nav>
</header>

{{--@yield('content')--}}

@section('content')
    <aside class="right">
        @if(isset($cate_son) && count($cate_son) > 0)
        <div class="rnav">
            <ul>
                @foreach($cate_son as $k=>$v)
                <li class="rnav{{ $k+1 }}"><a href="{{url('/list/'.$v->cate_id)}}" target="_blank">{{$v->cate_name}}</a></li>
                @endforeach
            </ul>
        </div>
        @endif

        <div class="weather"><iframe width="250" scrolling="no" height="60" frameborder="0" allowtransparency="true" src="http://i.tianqi.com/index.php?c=code&id=12&icon=1&num=1"></iframe></div>
        <div class="news">
            <h3>
                <p>最新<span>文章</span></p>
            </h3>
            <ul class="rank">
                @foreach($new as $m=>$n)
                    <li><a href="{{ url('/article/'.$n->art_id) }}" title="{{ $n->art_title }}" target="_blank">{{ $n->art_title }}</a></li>
                @endforeach
            </ul>
            <h3 class="ph">
                <p>点击<span>排行</span></p>
            </h3>
            <ul class="paih">
                @foreach($hot as $h)
                    <li><a href="{{ url('/article/'.$h->art_id) }}" title="{{ $h->art_title }}" target="_blank">{{ $h->art_title }}</a></li>
                @endforeach
            </ul>
            <h3 class="links">
                <p>友情<span>链接</span></p>
            </h3>
            <ul class="website">
                @foreach($link as $l)
                <li><a href="{{ $l->link_url }}">{{ $l->link_name }}</a></li>
                @endforeach
            </ul>
        </div>
        <!-- Baidu Button BEGIN -->
        <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare"><a class="bds_tsina"></a><a class="bds_qzone"></a><a class="bds_tqq"></a><a class="bds_renren"></a><span class="bds_more"></span><a class="shareCount"></a></div>
        <script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=6574585" ></script>
        <script type="text/javascript" id="bdshell_js"></script>
        <script type="text/javascript">
            document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
        </script>
        <!-- Baidu Button END -->
    </aside>
@show

<footer>
    <p>{!! Config::get('web.copyright') !!} <a href="javascript:;">{!! Config::get('web.web_count') !!}</a></p>
</footer>
<script src="{{ asset('resources/views/home/js/silder.js') }}"></script>
</body>
</html>
